home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / SCIENTIF / 1080.ZIP / BWVID.DOC < prev    next >
Text File  |  1986-03-22  |  6KB  |  82 lines

  1. The following is an Interrupt/Stay resident program that intercepts all      
  2. BIOS video calls involving color and maps them to black and white calls.     
  3. It will eliminate many of the fuzzy screens that arise from having           
  4. a BW monitor hooked up to a color graphics board.                            
  5. THIS PROGRAM IS ONLY USEFUL IF YOU HAVE A BLACK AND WHITE HIGH RESOLUTION    
  6. MONITOR CONNECTED TO YOUR GRAPHICS CARD.                                     
  7.                                                                              
  8. PROBLEMS THAT THIS ROUTINE SOLVES:                                           
  9.    This program, when installed will remove all the fuzzy displays that      
  10.    result when color display instructions are sent to BW monitor through     
  11.    the BIOS system.  The VAST MAJORITY of available code does go through     
  12.    BIOS so this will catch most of those problems.  This program works       
  13.    by intercepting the following video calls and changing them as described. 
  14.                                                                              
  15.    SET MODE FUNCTION (INT 10H, AH=0)                                         
  16.    If BIOS call is to set mode to 40x25 color then force mode to 40x25 BW    
  17.    If BIOS call is to set mode to 80x25 color then force mode to 80x25 BW    
  18.    If BIOS call is to set mode to 320x200 color then force mode to 320x200 BW
  19.                                                                              
  20.    WRITE CHARACTER AND ATTRIBUTE (INT 10H, AH=9)                             
  21.    Intercepts BIOS calls to write attributes and characters and changes      
  22. the attributes.  In the following, "Normal Video" is defined as White      
  23. (or Intense white) on black.  "Reverse Video" is defined as black on white 
  24. (or Intense white).  Attributes are modified as follows:                   
  25.      IF foreground and background are the same THEN                        
  26.         IF they are black or white THEN leave them alone                   
  27.         ELSE they are another color so force to white                      
  28.      ELSE                                                                  
  29.         IF foreground is black OR background is white THEN force "Reverse V
  30.         ELSE force "Normal Video"                                          
  31.                                                                            
  32. SCROLL PAGE UP (INT 10H, AH=6) or SCROLL PAGE DOWN  (INT 10H, AH=7)        
  33. Intercepts BIOS calls to scroll up or down and changes the attribute       
  34.    associated with the call as described immediately above for write charac
  35.                                                                            
  36. SET COLOR PALATTE  (INT 10H, AH=11)                                        
  37. Intercepts BIOS graphic calls to set the palette and changes them such that
  38.    *  Background is always black                                           
  39.    *  Foreground pallate always includes white (Color Id = 1)              
  40.                                                                            
  41. WRITE DOT (INT 10H, AH=12) and WRITE TELETYPE (INT 10H, AH=14)             
  42. The "Write Dot" and "Write Teletype" intercept functions both map fore-    
  43.    ground to white, regardless of the intended color.                      
  44. PROBLEMS THAT THIS ROUTINE CREATES:                                        
  45.    When information is transmitted to the view SOLELY through color        
  46.    information, then that information is lost in this transformation.      
  47.    (naturally!).  So if, for example, a game has a color bar that switches 
  48.    from green to red to signify danger, that information will be lost.     
  49.    This is because generally all foreground colors are forced to white and 
  50.    all background colors are forced to black.  This is not so much a       
  51.    problem created by this program as it is a problem with Black and White 
  52.    monitors not conveying as much information as Color Monitors.           
  53.                                                                            
  54. PROBLEMS THAT THIS ROUTINE DOES NOTHING ABOUT:                             
  55.    Any video calls that go straight to the hardware instead of going       
  56.    through BIOS.  It is unfortunately the case that some VERY sophisticated
  57.    programs that really have snazzy graphics do go to the hardware directly
  58.    because of the speed benefits.                                          
  59.                                                                            
  60. After installing this program, all of the IBM Diagnostic tests look        
  61. reasonable.                                                                
  62.                                                                            
  63. When loaded this program uses 309 Decimal bytes of memory including the    
  64. Program Segment Prefix (It relocates itself down into the unused portion   
  65.     of the Program Segment Prefix to save memory).                         
  66. BWVID - Version 1.2, (C) Copyright 1985 by Scott W. Killen, All Rights Reserve
  67.         This program may not be used for commercial purposes without the      
  68.            express written consent of Scott W. Killen.                        
  69. Version 1.0 - 5/02/85                                                         
  70. Version 1.1 - 8/20/85                                                         
  71. Version 1.2 - 8/29/85                                                         
  72. By:                                                                           
  73.    Scott W. Killen                                                            
  74.    P.O Box 27012                                                              
  75.    Austin Texas  78755                                                        
  76.    CIS ID: 76703,734                                                          
  77.    512/836-1942                                                               
  78.                                                                               
  79. This program is GiveAware!  The only payment I ask is your comments and       
  80. bug reports.                                                                  
  81.  
  82.